package com.geekaca.mq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    public  static final String QUEUE_NAME ="MY_QUEUE";

    @Bean
    public Queue createQueue(){
        return new Queue((QUEUE_NAME));
    }
}
